package com.yangwp.doutu.dao;

import com.yangwp.doutu.model.Image;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ImageDao {

	int insert(Image image);
	
	int update(Image image);
	
	Image getImageById(Integer id);

    Image getImageByMd5(String md5);

    Integer countImage(Map<String, Object> params);

    List<Image> getImageList(Map<String, Object> params);

    Image getImageByRanking(Integer ranking);
	
}